#ifndef __SERVER_H__
#define __SERVER_H__

#include "Session.h"

class Server
{
public:
	Server(boost::asio::io_service& ios, short port);

private:
	void start_accept();

	void handle_accept(ClientSession* new_session, const boost::system::error_code& error);

private:
	boost::asio::io_service& m_io_service;
	tcp::acceptor m_acceptor;
};

#endif	// __SERVER_H__
